package grape.attend.rest.clock.mapper;

import grape.attend.rest.clock.form.ClockListForm;
import grape.attend.service.clock.po.Clock;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.clock.form.ClockCreateForm;
import grape.attend.rest.clock.form.ClockUpdateForm;
import grape.attend.rest.clock.form.ClockListPageForm;
import grape.attend.rest.clock.vo.ClockVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 打卡设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ClockWebMapper extends WebMapper<ClockVo, Clock> {

    Clock formToPo(ClockCreateForm f);
    Clock formToPo(ClockUpdateForm f);
    Clock formToPo(ClockListPageForm f);
    Clock formToPo(ClockListForm f);
}
